<?php

namespace Agp\CoreBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Agp\CoreBundle\Entity\Banco
 *
 * @ORM\Table(name="banco")
 * @ORM\Entity(repositoryClass="Agp\CoreBundle\Repository\BancoRepository")
 */
class Banco
{
    /**
     * @var integer $codBanco
     *
     * @ORM\Column(name="cod_banco", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $codBanco;

    /**
     * @var string $descricao
     *
     * @ORM\Column(name="descricao", type="string", length=45)
     */
    protected $descricao;
    
    /**
     * @ORM\ManyToOne(targetEntity="Agp\CoreBundle\Entity\Empresa", cascade={"persist"}, fetch="LAZY")
     * @ORM\JoinColumn(name="cod_empresa", referencedColumnName="cod_empresa", onDelete="cascade")
     * @var object
     */
    protected $empresa;

    /**
     * Get codBanco
     *
     * @return integer 
     */
    public function getCodBanco()
    {
        return $this->codBanco;
    }

    /**
     * Set descricao
     *
     * @param string $descricao
     * @return Banco
     */
    public function setDescricao($descricao)
    {
        $this->descricao = $descricao;
    
        return $this;
    }

    /**
     * Get descricao
     *
     * @return string 
     */
    public function getDescricao()
    {
        return $this->descricao;
    }
    
    public function getEmpresa() {
        return $this->empresa;
    }

    public function setEmpresa($empresa) {
        $this->empresa = $empresa;
    }


}
